/**
 * 
 */
package com.edocbase.desktop;

import java.math.BigDecimal;
import java.util.Iterator;
import java.util.List;

import org.apache.commons.configuration.FileConfiguration;

/**
 * @author X61
 *
 */
public class PropertyConfig implements IPropertyConfig {
	FileConfiguration config = null;
	public PropertyConfig(FileConfiguration c) {
		config = c;
	}
	public boolean containsKey(String key) {
		return config.containsKey(key);
	}
	public BigDecimal getBigDecimal(String key, BigDecimal defaultValue) {
		return config.getBigDecimal(key, defaultValue);
	}
	public BigDecimal getBigDecimal(String key) {
		return config.getBigDecimal(key);
	}

	@Override
	public boolean getBoolean(String key, boolean defaultValue) {
		return config.getBoolean(key, defaultValue);
	}
	@Override
	public Boolean getBoolean(String key, Boolean defaultValue) {
		return config.getBoolean(key, defaultValue);
	}
	@Override
	public boolean getBoolean(String key) {
		return config.getBoolean(key);
	}
	public byte getByte(String key, byte defaultValue) {
		return config.getByte(key, defaultValue);
	}
	@Override
	public Byte getByte(String key, Byte defaultValue) {
		return config.getByte(key, defaultValue);
	}
	@Override
	public byte getByte(String key) {
		return config.getByte(key);
	}
	public double getDouble(String key, double defaultValue) {
		return config.getDouble(key, defaultValue);
	}
	public Double getDouble(String key, Double defaultValue) {
		return config.getDouble(key, defaultValue);
	}
	public double getDouble(String key) {
		return config.getDouble(key);
	}
	public float getFloat(String key, float defaultValue) {
		return config.getFloat(key, defaultValue);
	}
	public Float getFloat(String key, Float defaultValue) {
		return config.getFloat(key, defaultValue);
	}
	public float getFloat(String key) {
		return config.getFloat(key);
	}
	@Override
	public int getInt(String key, int defaultValue) {
		return config.getInt(key, defaultValue);
	}
	@Override
	public int getInt(String key) {
		return config.getInt(key);
	}
	@Override
	public Integer getInteger(String key, Integer defaultValue) {
		return config.getInteger(key, defaultValue);
	}
	public Iterator getKeys() {
		return config.getKeys();
	}
	public Iterator getKeys(String prefix) {
		return config.getKeys(prefix);
	}
	public List getList(String key, List defaultValue) {
		return config.getList(key, defaultValue);
	}
	public List getList(String key) {
		return config.getList(key);
	}
	public long getLong(String key, long defaultValue) {
		return config.getLong(key, defaultValue);
	}
	public Long getLong(String key, Long defaultValue) {
		return config.getLong(key, defaultValue);
	}
	public long getLong(String key) {
		return config.getLong(key);
	}
	public Object getProperty(String key) {
		return config.getProperty(key);
	}
	public short getShort(String key, short defaultValue) {
		return config.getShort(key, defaultValue);
	}
	public Short getShort(String key, Short defaultValue) {
		return config.getShort(key, defaultValue);
	}
	public short getShort(String key) {
		return config.getShort(key);
	}
	public String getString(String key, String defaultValue) {
		return config.getString(key, defaultValue);
	}
	public String getString(String key) {
		return config.getString(key);
	}
	public String[] getStringArray(String key) {
		return config.getStringArray(key);
	}
	public void setProperty(String key, Object value) {
		config.setProperty(key, value);
	}

}
